package Interview;

public class D5 extends Thread{
	private int age;
	public D5(int age) {
		super();
		this.age = age;
	}

	@Override
	public void run(){
		for (int i = 0; i < 5; i++) {
			try {
				Thread.sleep(10);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println(this.age);
		}
	}
	
	public static void main(String[] args) {
		D5 d1 = new D5(1);
		D5 d2 = new D5(2);
		D5 d3 = new D5(3);
		D5 d4 = new D5(4);
		d1.start();
		d2.start();
		d3.start();
		d4.start();
	}
}
